/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ceair.flight.refund.dto.uatp;

import com.ceair.flight.refund.dto.appmoblie.RefundApplyDto;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 * @author Colin_You
 */
public class CardForRefundNoQueryRes extends BasicRes {

    private static final long serialVersionUID = -1098718539933415832L;

    private List<RefundApplyDto> result;

    public List<RefundApplyDto> getResult() {
        return result;
    }

    public void setResult(List<RefundApplyDto> result) {
        this.result = result;
    }

    public BigDecimal getTotalRefundAmt() {
        BigDecimal amount = BigDecimal.ZERO;
        for (RefundApplyDto refundApply : result) {
            amount = amount.add(refundApply.getRefundAmount());
        }
        return amount;
    }

    public String getRefundReason() {
        return result.get(0).getClaimReason();
    }

    public String getRefundDesc() {
        return result.get(0).getClaimDesc();
    }

}
